/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: wuqingyu
 * Date: 2024-04-02
 * Time: 14:30
 */
public class Test {
    public static void main1(String[] args) {
        MyQueue myQueue = new MyQueue();
        System.out.println(myQueue.isEmpty());
        myQueue.offer(12);
        myQueue.offer(23);
        myQueue.offer(34);
        myQueue.offer(45);
        myQueue.offer(56);
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.isEmpty());
        System.out.println(myQueue.peek());
        System.out.println(myQueue.peek());
    }
    public static void main(String[] args) {
        MyQueue2 myQueue = new MyQueue2();
        System.out.println(myQueue.isEmpty());
        myQueue.offer(12);
        myQueue.offer(23);
        myQueue.offer(34);
        myQueue.offer(45);
        myQueue.offer(56);
        System.out.println(myQueue.poll());
        System.out.println(myQueue.poll());
        System.out.println(myQueue.isEmpty());
        System.out.println(myQueue.peek());
        System.out.println(myQueue.peek());
    }
}
